package com.yonyou.test.springTest.bean;

import org.springframework.stereotype.Component;

@Component
public class Animal {
	private String name;
	private Integer age;
	private Integer id;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Animal(Integer age, Integer id, String name) {
		this.age = age;
		this.id = id;
		this.name = name;
	}
	public Animal() {
	}
	public void say() {
		System.out.println("我是基类的say");
	}
}
